package com.pkk.penguin.frame.know.java.jvm.nativetest;

/**
 * @description: native测试
 * @author: peikunkun
 * @create: 2020-03-03 15:48
 **/
public class NativeTests {

  /**
   * 这些关键词都可以兼容
   *
   * @return
   */
  public native String test1();

  native public static String test2();

  native static String test3();

  native synchronized String test4() throws Exception;

  native synchronized private String test5() throws Exception;

  /**
   *不能使用abstract修饰,但是native并不是抽象方法
   */
  //native synchronized private abstract String test6() throws Exception;
}
